package org.yiming.tools.mqtt.client.client;

import lombok.RequiredArgsConstructor;

/**
 * @author renwenpeng@riverroad.cn
 * 2021/9/29 11:03
 */
@RequiredArgsConstructor
public class MqttConfigFactory {

    public MqttConfig newInstance(String url, String username, String password) {
        return MqttConfig.builder()
                .url(url)
                .username(username)
                .password(password)
                .build();
    }

}
